<?php
apf_require_controller("QaAbstract");

class Ajax_Finance_AddHitsController extends QaAbstractController {

    public function handle_request(){
        $params = $this->request->get_parameters();
        if($this->is_post_request()){
            if(isset($params['id']) && is_numeric($params['id'])){
                $id = intval($params['id']);
                $bll = $this->get_question_bll();
                $res = $bll->add_hits($id);
                echo json_encode(array('result'=>$res));
                exit;
            }
        }
    }
}